package io.github.yotta.export.web.anno;

import io.github.yotta.export.core.enums.ExcelType;
import io.github.yotta.export.core.export.ExcelDataExporter;
import io.github.yotta.export.web.iface.DefaultExportParamConvert;
import io.github.yotta.export.web.iface.ExportParamConvert;

import java.lang.annotation.*;

/**
 * @author yotta
 * @date 2023/10/30 14:13
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface ExportExcelData {

    String name();

    ExcelType fileType() default ExcelType.XLSX;

    String sheetName() default ExcelDataExporter.DEFAULT_SHEET_NAME;

    String fileName() default "";

    Class<? extends ExportParamConvert> convert() default DefaultExportParamConvert.class;


}
